Skip to content

Conversation

@andrewnicols
Copy link
Member

This is the start of migrating the phpunit docs.

We should land this and then add more detail re:

  • use of attributes
  • best practice
  • assertInstanceOf('some_stupid_string_class') is bad

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR begins the migration of PHPUnit documentation from the old MoodleDocs format to the new documentation structure. The main purpose is to consolidate PHPUnit testing guidance into a centralized location while updating internal links throughout the codebase.

  • Creates a new comprehensive PHPUnit testing guide at /docs/guides/testing/
  • Updates all existing links to point to the new documentation location
  • Registers the migration in the migratedPages.yml file

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
general/releases/3.4.md Updates PHPUnit upgrade link to new documentation location
general/releases/3.11.md Updates PHPUnit upgrade link to new documentation location
general/development/tools/phpunit/index.md Updates "Writing PHPUnit tests" link to new documentation location
general/development/tools/behat/writing.md Updates generator link to new documentation location and adds new step calling documentation
general/development/policies/codingstyle/index.md Updates PHPUnit-related links to new documentation location
docs/guides/testing/index.md Creates comprehensive new PHPUnit testing documentation
data/migratedPages.yml Registers the Writing_PHPUnit_tests migration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@netlify
Copy link

netlify bot commented Aug 13, 2025

Deploy Preview for moodledevdocs ready!

Name Link
🔨 Latest commit 0bfb61a
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/689cb6c829649e000914fea0
😎 Deploy Preview https://deploy-preview-1417--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ferranrecio
Copy link
Collaborator

I reviewed the text and I think it is ready to pull.

Copy link
Collaborator

@ferranrecio ferranrecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to pull.

@ferranrecio ferranrecio added this pull request to the merge queue Aug 13, 2025
Merged via the queue into moodle:main with commit 5d850f2 Aug 13, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants